﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="StudentBaseInfo.aspx.cs" Inherits="Sagacity.NC.Web.BasicSettings.Student.StudentBaseInfo" %>

<%@ Register Src="~/Form/HostFormCommon.ascx" TagName="HostFormCommon" TagPrefix="uc1" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    <title>学生基础信息</title>
    <link href="../../resources/css/main.css" rel="stylesheet" type="text/css" />
    <script  type="text/javascript">

        var PassWordFunction = function() {
            Ext.MessageBox.confirm('注意', '是否要初始化密码？', function(btn) {
                if (btn == 'yes') {
                    Coolite.AjaxMethods.InitPassWord({
                        success: function(result) {
                        if (result)
                                Ext.Msg.alert("提示", "初始化密码成功，密码为：111111");
                            else
                                Ext.Msg.alert("提示", "初始化密码失败请检查网络是否畅通");
                        }
                    });
                }
            }
            );
        }
    
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <script language="javascript" type="text/javascript">
        var resouceId = <%=resourceId %>;
        var action = "<%=action %>";
        var regionId = <%=regionId %>;
        var schoolId = 0;//<%=schoolId %>;
        var showStyle = <%=showStyle %>
        
        var showRedirection = "addScuccessFuc()";
        function addScuccessFuc(){
        debugger
                  Ext.MessageBox.confirm('注意', '保存成功。<p>点击【是】跳转到详细页面，点击【否】继续添加。<p>是否跳转到详细页面？', function(btn) {
                   if (btn=="yes") {
                         schoolId = xmlDoc.selectSingleNode("Root/Fields/Field[@Name='SCHOOL_ID'][@EnableEdit='True']").getAttribute("Value");
                         var params = "ResourceId="+resouceId+"&schoolId="+schoolId+"&studentId="+selectedKeyId+"&showStyle="+showStyle;
                         var url = "StuZaixiaoDetailInfo.aspx?"+params;
                         
                         self.parent.tabInfoTabs.activeTab.autoLoad.url = url;
                         self.parent.tabInfoTabs.activeTab.reload();
                   }
             }
             );
        }
    </script>
    <div>
        <ext:ScriptManager ID="ScriptManager1" CleanResourceUrl="false" runat="server" Theme="Default" />
        <ext:ViewPort ID="temp" runat="server">
            <Body>
            <uc1:HostFormCommon ID="HostFormCommon1" runat="server"  MenuId="1119"/>
            </Body>            
        </ext:ViewPort> 
    </div>
    </form>
</body>
</html>
